/*

  Phil Russell, Chase Covello, Micah Wendell
  
  The ActorGroupMessageHandler defines what a SequencerDest should
  do to handle an incoming message.  For now we simply forward the message
  to the ActorGroup associated with the SequencerDest.
  
  **/

package scala.actors.multicast.handlers;

import edu.ucla.cs.rpc.multicast.handlers.MessageHandler
import edu.ucla.cs.rpc.multicast.network.message.Message
import scala.actors.multicast.actorgroup.ActorGroup

class ActorGroupMessageHandler(group: ActorGroup) extends MessageHandler {
  
  def receive(msg: Message): Unit = {
    
    //Console.println("ActorMessageHandler received " + msg + " , sending it to " + group)
    
    //simply forward the message to the associated ActorGroup
    group ! msg
  }
}
